package com.zjgsu.nftplatform.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zjgsu.nftplatform.entity.Ware;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author ahy231
 * @date 2022/3/5 11:12
 * @description
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("商品信息")
public class GoodsInfo {
    @ApiModelProperty("id")
    private String id;
    @ApiModelProperty("nft id")
    private String nftId;
    @ApiModelProperty("商品名称")
    private String name;
    @ApiModelProperty("封面url")
    private String cover;
    @ApiModelProperty("商品属性")
    private String attribute;
    @ApiModelProperty("创作者名称")
    private String uploaderName;
    @ApiModelProperty("点赞数")
    private Integer stars;
    @ApiModelProperty("当前价格")
    private BigDecimal price;
//    @ApiModelProperty("售卖类型：所有权/版权")
//    private String type;
    @ApiModelProperty("开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;
//    @ApiModelProperty("结束时间")
//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
//    private Date endTime;
    @ApiModelProperty("当前状态：半成品/0、成品/1、审核下架/2")
    private Integer status;
//    @ApiModelProperty("版本")
//    private String edition;
    @ApiModelProperty("综合排序分")
    private Double comprehensiveScore;
}
